package com.learncloud.service;

import com.learncloud.common.FFmpeg.domain.VideoMetaInfo;
import com.learncloud.entity.FileShardInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文件服务层
 * <p/>
 *
 * @author : yj
 */
public interface IFileService {
    String upload(MultipartFile file);

    Map<String,List<FileShardInfo>> fragmentUploadUrls(MultipartFile file);

    VideoMetaInfo mergeAndTranscode(String objectName, String type);

    void delete(String bucketName, String objectName);

    VideoMetaInfo uploadByM3u8Url(String mau8Url);
}
